package org.linlinjava.litemall.db.service;

import org.linlinjava.litemall.db.dao.AgedmallReplenishNoticeMapper;
import org.linlinjava.litemall.db.domain.AgedmallReplenishNotice;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.time.LocalDateTime;

@Service
public class AgedmallReplenishNoticeService {
    @Resource
    private AgedmallReplenishNoticeMapper agedmallReplenishNoticeMapper;

    public void add(AgedmallReplenishNotice agedmallReplenishNotice) {
        agedmallReplenishNotice.setAddTime(LocalDateTime.now());
        agedmallReplenishNotice.setUpdateTime(LocalDateTime.now());
        agedmallReplenishNotice.setDeleted(false);
        agedmallReplenishNoticeMapper.insert(agedmallReplenishNotice);
    }
}
